import java.util.ArrayList;
import java.util.List;

public class Student {
   private  String name ;
   private  double score;

    List<Integer> scores ;

    public double getAverageScore() {
        if (scores.isEmpty()) {
            return 0;
        }
        int sum = 0;
        for (int score : scores) {
            sum += score;
        }
        return (double) sum / scores.size();
    }

    public Student() {
        scores = new ArrayList<>();
    }

    public Student(String name, double score) {
        this.name = name;
        this.score = score;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getScore() {
        return score;
    }

    public void addScore(int score) {
        scores.add(score);
    }

    public void setScore(double score) {
        this.score = score;
    }


}


